package com.oujia.cloud.cloudcommon.dto;

import com.oujia.cloud.cloudcommon.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

@ApiModel(value = "SearchDTO", description = "文件索引")
@Data
public class SearchDTO {

    @ApiModelProperty(value = "搜索Id", required = true)
    @NotBlank(message = "文件索引不能为空", groups = {AddGroup.class})
    private String id;

    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空", groups = {AddGroup.class})
    private String title;

    @ApiModelProperty(value = "作者")
    private String aintro;

    @ApiModelProperty(value = "封面图")
    private String coverPic;

    @ApiModelProperty(value = "听听时长")
    private String storyTime;

    @ApiModelProperty(value = "听听集数")
    private String storyNumber;

}
